package io.qiezi.scala.secrets

trait A {
  val audience: String
  println("Hello " + audience)
}

class BMember(a: String = "World") extends A {
  val audience: String = a
  println("I repeat: Hello " + audience)
}

class BConstructor(val audience: String = "World") extends A {
  println("I repeat: Hello " + audience)
}

object TraitDemo {
  def main(args: Array[String]): Unit = {
    new BMember("BMember")
    new BConstructor("BConstructor")
  }
}
